
import requst from '@/utils/request'
export function login(data) {
 return requst({
    url: "user/login",
    method: "post",
    data
 })
}
export function list(data) {
   return requst({
      url: "user/list",
      method: "post",
      data
   })
}
export function getName(id) {
   return requst({
      url: "user/" + id,
      method: "get",
   })
}
export function register(data) {
   return requst({
      url: "user/register",
      method: "post",
      data
   })
}
export function sendCode(email) {
   return requst({
      url: "user/sendCode/" + email,
      method: "get",
   })
}
export function randomUser() {
   return requst({
      url: "user/randomUser",
      method: "get",
   })
}